package server;

class BroadcastHandler implements Runnable {
	ClientConnection client;
	ServerProgram server;
	String commandText;
	
	BroadcastHandler(ClientConnection client, ServerProgram server, String commandText) {
		this.server = server;
		this.client = client;
		this.commandText = commandText;
	}
	
	@Override
	public void run() {
		server.notifyAllClients(commandText);
	}
}